package controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import service.RoleService;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/role")
public class RoleController {

    @Resource
    private RoleService roleService;

    @RequestMapping(value = "/rolelist",method = RequestMethod.GET)
    public String rolelist(HttpServletRequest request){
        request.setAttribute("roleList",roleService.getRoleList());
        return "rolelist";
    }


}
